﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Sms_sending.aspx.cs"
    Inherits="Sms_sending" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>短 信 发 送 队 列 监 控 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
</head>
<body style="overflow-x: hidden">
    <form id="form1" runat="server">
    <div>
        <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="88">
                    短 信 发 送 队 列 监 控
                </th>
            </tr>
            <tr>
                <td>
                    操作
                </td>
                <td>
                    <input type="button" class="btn" value="刷新" onclick="Refresh()" />
                    <asp:Button runat="server" ID="btnexcel" Text="导出Excel" OnClick="btnexcel_Click"
                        CssClass="btn" />
                    <asp:Button runat="server" ID="btn2task" Text="填充通道" OnClick="btn2task_Click" CssClass="btn" />
                    <asp:Button runat="server" ID="btn2target" Text="发送用户" OnClick="btn2target_Click"
                        CssClass="btn" />
                </td>
            </tr>
        </table>
        <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:GridView ID="gvList" runat="server" AllowPaging="false" CellPadding="2" AutoGenerateColumns="False"
                        GridLines="Both" EmptyDataText="当前页无数据" CssClass="tableBorder" Width="100%" ViewStateMode="Disabled">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="id" />
                            <asp:TemplateField HeaderText="用户名">
                                <ItemTemplate>
                                    <%# FTchina.SMSServer.SMSServer.GetSenderNameByID(Eval("senderID").ToString()) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                                                   
                            <asp:BoundField DataField="smsguid" HeaderText="短信批次编码" />
                            <asp:BoundField DataField="target" HeaderText="接收号码" />
                            <asp:BoundField DataField="scontent" HeaderText="内容" />
                        </Columns>
                        <PagerSettings Visible="False" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <asp:Literal runat="server" ID="litpager"></asp:Literal>
    </div>
    </form>
    <script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
    <script type='text/javascript' language='javascript'><!--
        TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
    --></script>
</body>
</html>
